
export const PersistedGrantTypes = [
    {
        label: 'AuthorizationCode',
        value: 'authorization_code'
    },
    {
        label: 'ReferenceToken',
        value: 'reference_token'
    },
    {
        label: 'RefreshToken',
        value: 'refresh_token'
    },
    {
        label: 'UserConsent',
        value: 'user_consent'
    },
    {
        label: 'DeviceCode',
        value: 'device_code'
    },
    {
        label: 'UserCode',
        value: 'user_code'
    }
]

export const SecretTypes = [
    {
        label: 'SharedSecret',
        value: 'SharedSecret'
    },
    {
        label: 'X509CertificateThumbprint',
        value: 'X509Thumbprint'
    },
    {
        label: 'X509CertificateName',
        value: 'X509Name'
    },
    {
        label: 'X509CertificateBase64',
        value: 'X509CertificateBase64'
    },
    {
        label: 'JsonWebKey',
        value: 'JWK'
    }
]

export const ParsedSecretTypes = [
    {
        label: 'NoSecret',
        value: 'NoSecret'
    },
    {
        label: 'SharedSecret',
        value: 'SharedSecret'
    },
    {
        label: 'X509Certificate',
        value: 'X509Certificate'
    },
    {
        label: 'JwtBearer',
        value: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer'
    }
]

export const ProtocolTypes = [
    {
        label: 'OpenIdConnect',
        value: 'oidc'
    },
    {
        label: 'WsFederation',
        value: 'wsfed'
    },
    {
        label: 'Saml2p',
        value: 'saml2p'
    }
]

export const GrantTypes = [
    {
        label: '简化模式 Implicit',
        value: 'implicit'
    },
    {
        label: '混合模式 Hybrid',
        value: 'hybrid'
    },
    {
        label: '授权码模式 AuthorizationCode',
        value: 'authorization_code'
    },
    {
        label: '客户端模式 ClientCredentials',
        value: 'client_credentials'
    },
    {
        label: '密码模式 ResourceOwnerPassword',
        value: 'password'
    },
    {
        label: '设备模式 DeviceFlow',
        value: 'urn:ietf:params:oauth:grant-type:device_code'
    },
]


export const AccessTokenType = [
    {
        label: 'Jwt',
        value: 0
    },
    {
        label: 'Reference',
        value: 1
    },
]

export const RefreshTokenUsage = [
    {
        label: '一次性',
        value: 0
    },
    {
        label: '重用',
        value: 1
    },
]

export const RefreshTokenExpiration = [
    {
        label: 'Absolute',
        value: 0
    },
    {
        label: 'Sliding',
        value: 1
    },
]


export const UserCodeTypes = [
    {
        label: '数字',
        value: 'Numeric'
    }
]
